package com.mdxl.second.dao;


import com.mdxl.second.Entity.CustomerEntity;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CustomerRepository extends MongoRepository<CustomerEntity,String>{
    CustomerEntity findByLastName(String lastName);
    List<CustomerEntity> findAllByFirstName(String firstName);
}
